package com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance;

import com.xiaoshuidi.cloud.module.finance.enums.finance.FinanceAccountWithdrawResultEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
public class FinanceAccountWithdrawExtDO extends FinanceAccountWithdrawDO {
    private Integer serialNumber;
    private BigDecimal balance;
    private String startTime;

    public String getResultDesc() {
        return FinanceAccountWithdrawResultEnum.valueOf(getResult()).getDesc();
    }
}
